package cn.cheneyjoo.sqlsession;

import cn.cheneyjoo.model.Configuration;
import cn.cheneyjoo.model.MappedStatement;

import java.util.List;

public interface Executor {

    public <E> List<E> query(Configuration configuration, MappedStatement mappedStatement, Object... params) throws Exception;

    public int update(Configuration configuration, MappedStatement mappedStatement, Object... params) throws Exception;
}
